public class Test27 {
    private String model;
    private int  prince;
    private    String colour;

    void setModel(String model1){
        model=model1;
    }
    String getModel(){
        return model;
    }
    void setPrince(int prince1){
        if(prince<0){
            System.out.println("价格不能为负数");
        }else if(prince>3000){
            System.out.println("价格不能超过官网标准价格,请重新设置");
        }else {
            prince=prince1;
        }

    }
    int getPrince(){
        return prince;
    }
    void  setColour(String colour1){
        colour=colour1;
    }
    String getColour(){
        return colour;
    }
    void phone(){
        System.out.println(prince+"元"+model+ "可以打电话");
    }
    void games(){
        System.out.println(prince+"元"+model+"可以打游戏");
    }
    void watchtv(){
        System.out.println(prince+"元"+model+"看电视");
    }
    void Photograph(){
        System.out.println(prince+"元"+model+"拍照更清晰");
    }
}
